home *** CD-ROM | disk | FTP | other *** search
- <%
- '+-------------------------------------------------------------------------
- '
- ' Microsoft Windows Media
- ' Copyright (C) Microsoft Corporation. All rights reserved.
- '
- ' File: Header.asp
- '
- ' Description: Responsible for creating a standard HTML header for each page
- '
- ' Dependencies: LocStrings.asp, WMSConstants.asp, Refresh.asp
- '
- '--------------------------------------------------------------------------
-
- '////////////////////////////////////////////////////////////////////
- Sub WriteFramesetDocType()
- %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"><%
- End Sub
-
-
- '////////////////////////////////////////////////////////////////////
- Sub WriteMetaTags()
- Response.CacheControl = "no-cache"
- Response.Expires = -1
- Response.AddHeader "Pragma", "no-cache"
- %>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"/>
- <META NAME="Description" CONTENT="<%= Server.HTMLEncode( L_ASPADMINDESCRIPTION_TEXT ) %>"/>
- <META HTTP-EQUIV="EXPIRES" CONTENT="-1"/>
- <META HTTP-EQUIV="PRAGMA" CONTENT="no-cache"/>
- <META NAME="ROBOTS" CONTENT="NOINDEX"/>
- <META NAME="MS.LOCALE" CONTENT="<%= Server.HTMLEncode( L_MSLOCALE_TEXT ) %>"/>
- <%
- End Sub
-
-
- '////////////////////////////////////////////////////////////////////
- Sub WritePageExpiration()
- Response.ExpiresAbsolute
- Response.Expires = -10000
- End Sub
-
- '////////////////////////////////////////////////////////////////////
- Sub WriteHTMLFramesetHeader()
- WriteFramesetDocType
- Response.Write("<HTML>")
- WriteMetaTags
- WritePageExpiration
- 'WriteRefreshMetaTag
- End Sub
-
- '////////////////////////////////////////////////////////////////////
- Sub ForceCodepage()
- if( ( brMSIE = Session( "BrowserType" ) ) and ( 0 < Len( Request.QueryString("instance") ) ) ) then
- %><!-- forcing the codepage... <%= RemoveDangerousCharacters( Request.QueryString("instance") ) %> --><%
- end if
- End Sub
-
- '////////////////////////////////////////////////////////////////////
- Sub WriteHTMLHeader( strTitle )
- if( 0 = Len( strTitle ) ) then
- strTitle = L_WMSWEBADMINTITLE_TEXT
- else
- strTitle = strTitle
- end if
- %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <HEAD><%
- WriteMetaTags
- %><title><%= Server.HTMLEncode( strTitle ) %></title>
- <% WritePageExpiration
- ForceCodepage
-
- End Sub
- %>
-